package com.yifei.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.yifei.base.IBaseEnum;
import lombok.Getter;

/**
 * @Description: 操作状态
 * @Author: yiFei
 * @date: 2023/11/1 22:57
 */
public enum OperatorStatusEnum implements IBaseEnum<Integer> {

    OK(0, "正常"),
    ERROR(1, "异常");

    @Getter
    @EnumValue //  Mybatis-Plus 提供注解表示插入数据库时插入该值
    private Integer value;

    @Getter
    @JsonValue
    private String label;

    OperatorStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

}
